﻿/*-------------------------------------------------------------------------
* CLR版本:     4.0.30319.42000
* 创建人:      song 
* 创建时间：   2024/7/11 16:37:53
* 功 能：      clip逻辑处理
*-------------------------------------------------------------------------*/

using BattleCore.proto;
namespace BattleCore.logic
{
    public class skill_clip_logic
    {
        public skill_clip_logic(skill_clip clip)
        {
            this._clip = clip;
        }

        public readonly skill_clip _clip;
        public int _uId;

        public void Enter()
        {
            var renderMsg = _clip.GetRenderMsg();
            renderMsg._uId = _uId;
            renderMsg._state = RenderState.Play;
            battle.Instance._engineRender.SendMessage(_clip.GetRenderMsg());
        }
        public void Tick() { }
        public void Exit()
        {
            var renderMsg = _clip.GetRenderMsg();
            renderMsg._uId = _uId;
            renderMsg._state = RenderState.Stop;
            battle.Instance._engineRender.SendMessage(_clip.GetRenderMsg());
        }
    }
}